<html>
<head>
<title>管理系统</title>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "../inc/commonJs.html">
<script language="JavaScript">
function doSave() {
	if($('#hostname').val()=='${obj.hostname!}' && $('#hostport').val()=='${obj.hostport!}' &&
		$('#username').val()=='${obj.username!}' && $('#userpwd').val()=='${obj.userpwd!}'){
		$.messager.alert('提示','未修改信息！！');return;
	}
	$('#systemForm').form('submit',{  
	    url:'${request.contextPath}/xadmin/work/emailSetAct.do',
	    onSubmit:function(param){
	        return $(this).form('validate');  
	    },  
	    success:function(data){
	    	window.top.closemodalwindow(true,data);
	    }  
	});
}
function resetForm(){
	$('#hostname').val('${obj.hostname!}');
	$('#hostport').val('${obj.hostport!}');
	$('#username').val('${obj.username!}');
	$('#userpwd').val('${obj.userpwd!}');
}
</script>

</head>
<body>
    <div align="center" class="easyui-panel" data-options='fit:true,border:false'>
<form method="post" name="system" id="systemForm">
<input type="hidden" name="userid" value="${obj.userid!}">
<br>
<table class="table_all" align="center" border="0" cellpadding="0" width="98%"
			cellspacing="0" style="margin-top: 0px">
<tr><td colspan="2" class="td_title">&nbsp;外网邮箱属性设置</td></tr>
<tr> 
	<td class="td_table_1" width="193" align="right" style="padding-right:10px;" ><font color=red>*</font>SMTP服务器：</td>
	<td class="td_table_2" colspan="2" align="left" >
		<input class="easyui-validatebox" type="text" required="true" id="hostname" name="hostname" maxlength="20" style="width:300px;" value='${obj.hostname!}'></td>
</tr>
<tr> 
	<td class="td_table_1" width="193" align="right" style="padding-right:10px;" ><font color=red>*</font>端口号：</td>
	<td class="td_table_2" colspan="2" align="left">
	<input class="easyui-numberbox" type="text" required="true" id="hostport" name="hostport" maxlength="40" style="width:300px;" value="${obj.hostport!}"></td>
	</td>
</tr>
<tr> 
	<td class="td_table_1" width="193" align="right" style="padding-right:10px;" ><font color=red>*</font>用户名：</td>
	<td class="td_table_2" colspan="2" align="left" >
		<input class="easyui-validatebox" type="text" required="true" id="username" name="username" maxlength="50" missingMessage="邮件必须填写" validType="email" invalidMessage="请填写正确的邮件格式" style="width:300px;" value="${obj.username!}"></td>
</tr>
<tr> 
	<td class="td_table_1" width="193" align="right" style="padding-right:10px;" ><font color=red>*</font>用户密码：</td>
	<td class="td_table_2" colspan="2" align="left" >
		<input class="easyui-validatebox" type="password" required="true" id="userpwd" name="userpwd" maxlength="50" style="width:300px;" value="${obj.userpwd!}"></td>
</tr>
</table>
</form>
</div>
</body>
</html>